/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package UsoLoop;

/**
 *
 * @author Denis
 */
public class SalirLoop {
    public static void main(String[] args) {
        int index = 0;
        while(index <= 1000){
            index = index +5;
            System.out.println(index);
            if (index == 400) {
                System.out.println("Index = 400. Saliendo...");
                break;
            }
        }
    }
}
